package com.ta.gulimall.gulimall.elasticsearch.vo;

import com.ta.gulimall.common.view.to.UpSpuInfoTo;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class SearchVo {
    private List<UpSpuInfoTo> products;
    private List<CatalogVo> catalogs;
    private List<BrandVo> brands;
    private List<AttrVo> attrs;

    private Integer pageNum;
    private Long total;
    private Integer totalPage;



    @Data
    @Accessors(chain = true)
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    @Accessors(chain = true)
    public static class AttrVo {

        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
    @Data
    @Accessors(chain = true)
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

}
